package com.doge.controller.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseParam;
import com.doge.bean.base.BaseRespVo;
import com.doge.service.admin.log.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: doge
 * @description: 管理员操作日志管理
 * @author: Keyu Li
 * @create: 2021-11-29 20:49
 **/

@RestController
@RequestMapping("admin/log")
public class LogController {

    @Autowired
    LogService logService;

    @RequestMapping("list")
    public BaseRespVo list(BaseParam param,String name){
        BaseData data = logService.list(param,name);
        return BaseRespVo.ok(data);
    }
}
